﻿@model Annual_faculty_promotions.WebUI.Models.RegisterViewModel
@{
    ViewBag.Title = "نام نویسی در فروشگاه";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="bpanel bpanel-default">
    <div class="bpanel-body">
        @using (Html.BeginForm("Register", "Account", FormMethod.Post, new {@class = "form-horizontal", role = "form"}))
        {
            @Html.AntiForgeryToken()
            <h4>ایجاد کاربر جدید</h4>
            <hr/>
            @Html.ValidationSummary("", new {@class = "alert alert-danger"})
            <div class="form-group">
                @Html.LabelFor(m => m.CodeMeli, new {@class = "col-md-2 control-label pull-right"})
                <div class="col-md-10">
                    @Html.TextBoxFor(m => m.CodeMeli, new {@class = "form-control"})
                </div>
            </div>
             <div class="form-group">
                @Html.LabelFor(m => m.CodeEstekhdam, new {@class = "col-md-2 control-label pull-right"})
                <div class="col-md-10">
                    @Html.TextBoxFor(m => m.CodeEstekhdam, new { @class = "form-control" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Email, new {@class = "col-md-2 control-label pull-right"})
                <div class="col-md-10">
                    @Html.TextBoxFor(m => m.Email, new {@class = "form-control"})
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Password, new {@class = "col-md-2 control-label pull-right"})
                <div class="col-md-10">
                    @Html.PasswordFor(m => m.Password, new {@class = "form-control"})
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.ConfirmPassword, new {@class = "col-md-2 control-label pull-right"})
                <div class="col-md-10">
                    @Html.PasswordFor(m => m.ConfirmPassword, new {@class = "form-control"})
                </div>
            </div>
              <div class="form-group">
                            @Html.LabelFor(m => m.Captcha, new { @class = "col-md-2 control-label" })
                            <div class="col-md-offset-2 col-md-10">
                                <input type="image" id="image" src="@Url.Action("Image", "Home")" alt="بارگذاری تصویر"/>
                              
                                <div style="margin-bottom: 25px" class="input-group">
                                    @Html.TextBoxFor(m => m.Captcha, new {@class = "form-control"})
                                </div>
                            </div>
                        </div>
            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" class="btn btn-default" value="ثبت نام"/>
                </div>
            </div>
        }
    </div>
</div>



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
